/*
package com.zyl.edthresholdtraining.config.interceptor;

import com.zyl.edthresholdtraining.config.component.MyLocalResolver;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

*/
/**
*
 * @author zhangyulu
 * @description 拦截器
 * @date 2020/6/20/020
*//*





@Configuration
public class MyMvcConfigurer implements WebMvcConfigurer {
    private final String dir= "30264d0499154aeeb4ec8349e43b0efe";
    @Bean
    public WebMvcConfigurer  webMvcConfigurer() {
        WebMvcConfigurer  webMvcConfigurer = new WebMvcConfigurer () {
            @Override
            public void addViewControllers(ViewControllerRegistry registry) {
                registry.addViewController("/excel.html").setViewName("excel");
                registry.addViewController("/ZJU/"+dir+"/index.html").setViewName("index");
            }
        };
        return webMvcConfigurer;
    }
    @Bean
    public LocaleResolver localeResolver() {
        return new MyLocalResolver();
    }

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new MyLoginInterceptor()).addPathPatterns("/ED_threshold_training/**")
                .excludePathPatterns("/ED_threshold_training/add","/ED_threshold_training/login",
                        "/ED_threshold_training/index",
                        "/ED_threshold_training/train/**",
                        "/ED_threshold_training/test/**",
                        "/ED_threshold_training/timeConfigure/**",
                        "/ED_threshold_training/excel/**",
                        "/doc.html",
                        "/excel/**",
                        "/excel.html");
    }
}
*/
